package com.techfansy.provinceCitySelect.utils;

import android.content.Context;

/**
 * Created by Administrator on 2018/3/29/029.
 */

public class Field {
    private Field field;

    public int getDrawableId(Context context,String name){
        return context.getResources().getIdentifier(name,"drawable",context.getPackageName());
    }
    public int getLayoutId(Context context,String name){
        return context.getResources().getIdentifier(name,"layout",context.getPackageName());
    }
    public int getViewId(Context context,String name){
        return context.getResources().getIdentifier(name,"id",context.getPackageName());
    }
    public int getStyleId(Context context,String name){
        return context.getResources().getIdentifier(name,"style",context.getPackageName());
    }
}
